using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Windows.Forms;

namespace Sigecov.Models
{
    public class Supervisor
    {
        public Supervisor()
        {
            this.Funcionarios = new List<Funcionario>();
        }

        public int supId { get; set; }
        public string supNome { get; set; }
        public virtual ICollection<Funcionario> Funcionarios { get; set; }
        public static List<Supervisor> ListarSupervisor()
        {
            using (SigecovContext DB = new SigecovContext())
                return DB.Supervisors.OrderBy(s => s.supNome).ToList();
        }
    }
}
